GtkMenuTracker: set action namespace correctly
authorLars Uebernickel <lars.uebernickel@canonical.com>
Tue, 12 Nov 2013 11:08:57 +0000 (12:08 +0100)
committerRyan Lortie <desrt@desrt.ca>
Tue, 12 Nov 2013 20:42:23 +0000 (15:42 -0500)
gtk_menu_tracker_add_items() fetched the action-namespace from the menu
item, but didn't pass it into gtk_menu_tracker_section_new() when its
internal namespace was still NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=712164

gtk/gtkmenutracker.c

index c9e8459cc8190cb82137a935aabc65176ff37a31..6f0f4ba8dbbfe30b6a7196094541bb217dddac6d 100644 (file)
@@ -290,7 +290,7 @@ gtk_menu_tracker_add_items (GtkMenuTracker         *tracker,
               g_free (namespace);
             }
           else
-            subsection = gtk_menu_tracker_section_new (tracker, submenu, FALSE, offset, section->action_namespace);
+            subsection = gtk_menu_tracker_section_new (tracker, submenu, FALSE, offset, action_namespace);
 
           *change_point = g_slist_prepend (*change_point, subsection);
           g_free (action_namespace);